package info.ask4research.service.impl;

import info.ask4research.dao.IMultipleChoiceDAO;
import info.ask4research.dao.core.AbstractDao;
import info.ask4research.model.addons.MultipleChoice;
import info.ask4research.service.IMultipleChoiceService;
import info.ask4research.service.core.impl.AbstractServiceImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service(value="multipleChoiceService")
@Transactional
public class MultipleChoiceService extends AbstractServiceImpl<MultipleChoice> implements IMultipleChoiceService{

	@Resource(name = "multipleChoiceDAO")
	IMultipleChoiceDAO dao;

	@Override
	public AbstractDao<MultipleChoice> getDao() {
		return dao;
	}

	@Override
	public void setDao(AbstractDao<MultipleChoice> dao) {
		this.dao = (IMultipleChoiceDAO) dao;
	}

}
